package com.huangguolin.cloud.login.repository;


import com.huangguolin.cloud.mybatis.entity.PtMenuEntity;
import com.huangguolin.cloud.mybatis.entity.PtUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LoginDao {

    List<PtUserEntity> queryUserList();

    void deleteUserById(@Param("userId") String userId);

    PtUserEntity queryUserInfoByName(@Param("userName") String userName);

    void resttingPassword(@Param("password2")String password1,@Param("userIds") String userIds);//修改密码

    String infoUserName(@Param("regName")String regName);//校验用户名

    String queryUserIdByEmail(@Param("userEmail") String emailCode);//通过邮箱查找userid

    void registerUser(@Param("password2") String password2, @Param("userEmail") String emailCode,@Param("regName")String regName,@Param("regniceName")String  regniceName );//注册新用户

    List<PtMenuEntity> queryMenuList(@Param("userUuid")String userUuid,@Param("lang")String lang);

    /**
     * 根据用户id查询权限列表
     * @param userUuid
     * @return
     */
    List<String> queryAuthListById(@Param("userUuid")String userUuid);



}
